package com.feicheng.persistence.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.persistence.entity.Vip;
import com.feicheng.persistence.model.VipMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Mapper
public interface VipMapper extends BaseMapper<Vip> {

    List<VipMain> getVips(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    Page<VipMain> getVipsByPage(Page<VipMain> page,@Param(Constants.WRAPPER)QueryWrapper queryWrapper);

    VipMain getVipById(@Param(Constants.WRAPPER)QueryWrapper<VipMain> queryWrapper);

    List<VipMain> getVipByClientId(@Param(Constants.WRAPPER)QueryWrapper<VipMain> vipMainQueryWrapper);

    Integer getAmount(@Param(Constants.WRAPPER)QueryWrapper<VipMain> cardRecordQueryWrapper);
}
